package com.jsoft.android.util;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class CharacterName extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		String who = "empty";
		Bundle extras = getIntent().getExtras();
		if (extras != null) {
			String extrasWho = extras.getString("who");  // ExtraKey

			if (who != null) {
				who = extrasWho;
			}

		}
		// return that characters info as a string
		Bundle bundle = new Bundle();
		bundle.putCharSequence("APP_INVENTOR_RESULT", who);
		Intent mIntent = new Intent();
		mIntent.putExtras(bundle);
		setResult(RESULT_OK, mIntent);
		//setResult(RESULT_OK);
		finish();

	}


}
